function scaledEffectogram = scale2DEffectogram(originEffectogram, templateSize, signalSize, fulfillWith)
%SCALE2DEFFECTOGRAM scales given 2D effectogram according to template and
%signal sizes.
effectogramSize = size(originEffectogram);
scaledEffectogram = fulfillWith * ones(signalSize);
scaledEffectogram(templateSize(1) / 2:templateSize(1) / 2 + effectogramSize(1) - 1, templateSize(2) / 2 : templateSize(2) / 2 + effectogramSize(2) - 1) = originEffectogram;
end

